package com.tom.vo;

import com.tom.util.PageList;
import lombok.Data;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Data
public class AggPageList extends PageList {

    /**
     * {xx1:【
     *     {机构名：XX, 课程数量：YY},{机构名：XX, 课程数量：YY}...
     *      】
     *  xx2:【
     *      {等级名：XX, 等级的课程数量：YY},{等级名：XX, 等级的课程数量：YY}...
     *      】
     * }
     * .....
     */

    private Map<String, List<TermsAggBucket>> termsAggResult = new HashMap<>();

    public AggPageList(){}


    public AggPageList(long total, List rows, Map<String, List<TermsAggBucket>> termsAggResult) {
        super(total, rows);
        this.termsAggResult = termsAggResult;
    }

    public AggPageList(Map<String, List<TermsAggBucket>> termsAggResult) {
        this.termsAggResult = termsAggResult;
    }
}
